home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / QuickDraw GX / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / interfaces / offscreen library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-30  |  1.7 KB  |  49 lines  |  [TEXT/MPS ]

  1. /* graphics libraries:  
  2.     offscreen support library interfaces
  3.     by Cary Clark, Michael Fairman, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink
  4.     Copyright ©1987 - 1993 Apple Computer, Inc.  All rights reserved.
  5. */
  6.  
  7. #pragma once
  8. #ifndef offscreenLibraryIncludes
  9.     #define offscreenLibraryIncludes
  10.     
  11.     #ifndef graphicsTypesIncludes
  12.         #include "graphics types.h"
  13.     #endif
  14.  
  15.     #ifdef __cplusplus
  16.     extern "C" {
  17.     #endif
  18.  
  19.     struct offscreen {
  20.         gxShape        draw;    /* a gxBitmap gxShape which, when drawn, will transfer the offscreen to the display */
  21.         gxTransform    xform;    /* a gxTransform that will cause shapes owning it to draw offscreen. */
  22.         gxViewDevice    device;    /* the offscreen gxViewDevice whose gxColorSpace, etc. you may change */
  23.         gxViewPort    port;        /* the offscreen gxViewPort which may be placed in any gxTransform's gxViewPort list */
  24.         gxViewGroup    group;    /* the global space in which the gxViewPort and gxViewDevice exist */
  25.     };
  26.     
  27.     typedef struct viewPortBufferRecord **viewPortBuffer;
  28.  
  29.     #ifndef __cplusplus
  30.         typedef struct offscreen offscreen;
  31.     #endif
  32.     
  33.     /* (see the .c file for routine explanations) */
  34.     void CreateOffscreen(offscreen *target, gxShape bitmapShape);
  35.     void DisposeOffscreen(offscreen *target);
  36.     void CopyToBitmaps(gxShape target, gxShape source);
  37.  
  38.     viewPortBuffer NewViewPortBuffer(gxViewPort originalPort);
  39.     void DisposeViewPortBuffer(viewPortBuffer target);
  40.     boolean ValidViewPortBuffer(viewPortBuffer target);
  41.     boolean UpdateViewPortBuffer(viewPortBuffer target);
  42.     gxViewPort GetViewPortBufferViewPort(viewPortBuffer source);
  43.     gxShape GetViewPortBufferShape(viewPortBuffer source);
  44.  
  45.     #ifdef __cplusplus
  46.     }
  47.     #endif
  48. #endif
  49.